/*
 * Niiuzu
 * Copyright (C) 2011  Thierry Nowak
 * 
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.niiuzu.shared.model;

import java.io.Serializable;

/**
 * Modèle d'un groupement de flux permettant de manipuler un ensemble de flux,
 * de le nommer et de lui affecter un style.
 */
public class FeedChannelGroup implements Serializable {

	private static final long serialVersionUID = -3611637482915730748L;

	private String uid;
	private String name;
	private FeedStyle style;
	private String userUid;

	/**
	 * Construit une nouvelle instance de {@link FeedChannelGroup}.
	 */
	public FeedChannelGroup() {

	}

	/**
	 * Identifiant unique du groupement.
	 */
	public String getUid() {
		return uid;
	}

	/**
	 * Définit l'identifiant unique du groupement.
	 */
	public void setUid(String uid) {
		this.uid = uid;
	}

	/**
	 * Nom du groupement.
	 */
	public String getName() {
		return name;
	}

	/**
	 * Définit le nom du groupement.
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * Style appliqué au groupement.
	 */
	public FeedStyle getStyle() {
		return style;
	}

	/**
	 * Définit le style appliqué au groupement.
	 */
	public void setStyle(FeedStyle style) {
		this.style = style;
	}

	/**
	 * Identifiant du propriétaire de ce thème.
	 */
	public String getUserUid() {
		return userUid;
	}

	/**
	 * Définit l'identifiant du propriétaire de ce thème.
	 */
	public void setUserUid(String userUid) {
		this.userUid = userUid;
	}

	@Override
	public String toString() {
		return "`#" + (uid == null ? "{unknown}" : uid) + " " + name + "`";
	}
}
